package com.chushouya.product.dto.admin.evaluate;

import com.chushouya.common.constant.EvaluateItemSelectTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 评估项目
 */
@Data
@ApiModel("评估项目")
public class EvaluateItemListItemDTO {

    @ApiModelProperty(value = "评估项目id", required = true)
    private Long evaluateItemId;

    @ApiModelProperty(value = "评估项目名称", required = true)
    private String itemName;

    @ApiModelProperty(value = "排序", required = true)
    private Integer sort;

    @ApiModelProperty(value = "评估项目选项类型, EvaluateItemSelectTypeEnum", required = true)
    private Integer selectType;

    @ApiModelProperty("评估选项类型")
    private String selectTypeDesc;

    @ApiModelProperty(value = "评估项目选项列表", required = true)
    private List<EvaluateItemValueDetailDTO> values;

    public String getSelectTypeDesc() {
        return EvaluateItemSelectTypeEnum.getDesc(selectType);
    }

}
